Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: improve nsolid::CustomCommand() #44

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

santigimeno
Copy link
Member

Make sure custom_command_proxy_() is called in every path so there are no potential leaks.
Simplify/improve code avoiding unnecessary extra heap allocation for the req_id.
Added a couple more checks to the tests.

src/nsolid/nsolid_api.cc Show resolved Hide resolved
src/nsolid/nsolid_api.cc Outdated Show resolved Hide resolved
src/nsolid/nsolid_api.cc Outdated Show resolved Hide resolved
Make sure `custom_command_proxy_()` is called in every path so there are
no potential leaks.
Simplify/improve code avoiding unnecessary extra heap allocation for the
`req_id`.
Added tests covering worker threads and other cases not previously
checked.

PR-URL: #44
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
@santigimeno santigimeno merged commit fccddd8 into node-v20.x-nsolid-v5.x Dec 11, 2023
16 of 18 checks passed
@santigimeno santigimeno deleted the santi/custom_command_cb branch December 11, 2023 20:39
trevnorris pushed a commit that referenced this pull request Dec 19, 2023
Make sure `custom_command_proxy_()` is called in every path so there are
no potential leaks.
Simplify/improve code avoiding unnecessary extra heap allocation for the
`req_id`.
Added tests covering worker threads and other cases not previously
checked.

PR-URL: #44
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
trevnorris pushed a commit that referenced this pull request Dec 19, 2023
Make sure `custom_command_proxy_()` is called in every path so there are
no potential leaks.
Simplify/improve code avoiding unnecessary extra heap allocation for the
`req_id`.
Added tests covering worker threads and other cases not previously
checked.

PR-URL: #44
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants